Here is what I found.
http://www.dominopower.com/issuesprint/issue199903/webcount.html
It's not exactly printing binary data to webbrowser, but in some cases it will work fine.
The idea is to create a gif-file on the server and then redirect browser to that file instead of sending binary data from the agent.